package com.esunrising.esungsc.controller;

import com.esunrising.esungsc.dto.Result;
import com.esunrising.esungsc.entity.FIGLAYwdj;
import com.esunrising.esungsc.service.FIGLAYwdjService;
import io.swagger.annotations.Api;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

@RestController
@RequestMapping("/internal/api/v1/fIGLAYwdj")
@Api(value = "/internal/api/v1/fIGLAYwdj", tags = {"凭证关联业务单据接口处理模块"})
@Slf4j
public class FIGLAYwdjController {


    @Resource
    private FIGLAYwdjService fIGLAYwdjService;

    @GetMapping("/{id}")
    Result<FIGLAYwdj> getById(@PathVariable String id) {
        return Result.ok(fIGLAYwdjService.findById(id));
    }



}